const HTTP = require("./request.js");
module.exports = {
    // 获取分类列表
    "getCategory":function(){
        return HTTP({
            url:"https://api-hmugo-web.itheima.net/api/public/v1/categories",
        })
    },
    // 获取商品列表搜索
    "getGoodsSearch":function(data){
        return HTTP({
            url:"https://api-hmugo-web.itheima.net/api/public/v1/goods/search",
            data
        })
    },
}